7.5 Modal Windows
- Motivations
- What are modal windows?
- Read the first part in Modal window.
- Do you have any idear how to write the code for 'SignIn' in TruQA?
- How to display a box over every other elements?
- How to make the background, i.e., everything except the pop-up box, dim?
- When the background is clicked, how to make the pop-up box disappear?
- Trial 1: Let's try to make a pop-up box over everything.
Hints. position, calc(), z-index
- Trial 2: Let's try to make a pop-up box disappear
when the close button in the pop-up box is clicked.
- Trial 3: Let's try to make the other area dim.
How? Any good idea?
Hints. blanket over the area, and obacity.
- Can you try to click all the blanket area? What happens?
- Trial 4: Let's try to make the the pop-up box disappear,
even when the blanket area is clicked.
How? Any good idea?
- Can you use a drop down menu instead of the button on the above examples?
- Learning outcomes